import { httpDelete, httpPost, httpPut } from "@/utils/http";
import type { OrganizationTypeItem } from "./organization";

export interface WorkplaceType {
    name: string;
    organizationTypeId: string | OrganizationTypeItem;
    _id: string
}
export function getWorkplacesApi(data?: object) {
    return httpPost('/workplaces/search', data);
}
export function deleteWorkplacesDataApi(data: object) {
    return httpDelete('/workplaces/remove', data);
}
export function addWorkplacesDataApi(data: object) {
    return httpPost('/workplaces/add', data);
}
export function updateWorkplacesDataApi(data: object) {
    return httpPut('/workplaces/update', data);
}